package com.zenchn.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

public class TMiCustomerTransfer implements Serializable {
    private String transferId;

    private String customerId;

    private String beforeAccountId;

    private String afterAccountId;

    private String isEnable;

    private String creator;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;

    public String getTransferId() {
        return transferId;
    }

    public void setTransferId(String transferId) {
        this.transferId = transferId == null ? null : transferId.trim();
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId == null ? null : customerId.trim();
    }

    public String getBeforeAccountId() {
        return beforeAccountId;
    }

    public void setBeforeAccountId(String beforeAccountId) {
        this.beforeAccountId = beforeAccountId == null ? null : beforeAccountId.trim();
    }

    public String getAfterAccountId() {
        return afterAccountId;
    }

    public void setAfterAccountId(String afterAccountId) {
        this.afterAccountId = afterAccountId == null ? null : afterAccountId.trim();
    }

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable == null ? null : isEnable.trim();
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", transferId=").append(transferId);
        sb.append(", customerId=").append(customerId);
        sb.append(", beforeAccountId=").append(beforeAccountId);
        sb.append(", afterAccountId=").append(afterAccountId);
        sb.append(", isEnable=").append(isEnable);
        sb.append(", creator=").append(creator);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}